import Vue from 'vue'
import Router from 'vue-router'
import Goods from 'components/goods/Goods'
import Seller from 'components/seller/Seller'
import Ratings from 'components/ratings/Ratings'

Vue.use(Router);

export default new Router({
  mode: 'history', // 去掉地址栏中的/#/
  routes: [
    {path: '/', redirect: '/goods'},
    {path: '/goods', component: Goods},
    {path: '/seller', component: Seller},
    {path: '/ratings', component: Ratings}
  ],
  linkActiveClass: 'active'
})
